From: Jo-Philipp Wich Date: Fri, 16 Aug 2019 07:49:11 +0000 (+0200) Subject: luci-base: widgets.js: CBINetworkSelect: honour exclude option X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=24aa675a4638751c50b2fe25c31d28c866c638e7;p=project%2Fluci.git luci-base: widgets.js: CBINetworkSelect: honour exclude option Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 2da9e7435f..861d8c8cea 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -358,7 +358,7 @@ var CBINetworkSelect = form.ListValue.extend({ var network = this.networks[i], name = network.getName(); - if (name == 'loopback' || !this.filter(section_id, name)) + if (name == 'loopback' || name == this.exclude || !this.filter(section_id, name)) continue; if (this.novirtual && network.isVirtual())